package hb.software.course.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import domain.BaseEntity;
import hb.software.course.category.CourseCategory;

@Entity
@Table(name = "T_course")
public class Course extends BaseEntity<Long> {

	@ManyToOne
	@JoinColumn(name = "Category_ID")
	CourseCategory courseCategory;

	

	public CourseCategory getCourseCategory() {
		return courseCategory;
	}

	public void setCourseCategory(CourseCategory courseCategory) {
		this.courseCategory = courseCategory;
	}

	private static final long serialVersionUID = 4475744750767977852L;

	@Column
	String coursename;

	@Column
	String coursetime;

	public String getCoursename() {
		return coursename;
	}

	public void setCoursename(String coursename) {
		this.coursename = coursename;
	}

	public String getCoursetime() {
		return coursetime;
	}

	public void setCoursetime(String coursetime) {
		this.coursetime = coursetime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}